package com.xbongbong.pro.customerstatement.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description
 * @author: shian
 * @date : 2021/1/4
 */
@Getter
@Setter
public class StatementCustomerAddDTO extends BaseDTO {
    private static final long serialVersionUID = 1251786303240879772L;
    /**
     * 对账单appId
     */
    @NotNull(message = "{dto.msg.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.menuId.NotNull}")
    private Long menuId;

    /**
     * 对账单表单id
     */
    @NotNull(message = "{dto.msg.formId.NotNull}")
    private Long formId;

    /**
     * 客户id
     */
    @NotNull(message = "{dto.msg.statementCustomerTable.customerId.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Long customerId;
    /**
     * 对账日期范围筛选：[1601481600, 1603555199]
     */
    @NotNull(message = "{dto.msg.statementCustomerList.checkingDate.NotEmpty}")
    @NotEmpty(message = "{dto.msg.statementCustomerList.checkingDate.NotEmpty}")
    @Getter(onMethod_ = {@QueryIgnore})
    private List<Long> checkingDate;

    /**
     * 经销商标识
     */
    private Integer distributorMark;

    /**
     * 重新生成的对账单id
     */
    private Long regenerateId;

}
